package org.meiling.util;

import java.applet.Applet;
import java.applet.AudioClip;
import java.io.File;
import java.io.IOException;

import javax.media.Manager;
import javax.media.NoPlayerException;
import javax.media.Player;

import com.sun.media.MediaPlayer;

public class Sounds {
	public static void playClear(){
		Player ac;
		try {
			ac = Manager.createPlayer(Sounds.class.getResource("sounds/clear.wav"));
			ac.start();
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
	
	public static void playStart(){
		Player ac;
		try {
			ac = Manager.createPlayer(Sounds.class.getResource("sounds/readygo.wav"));
			ac.start();
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
	
	public static void playNext(){
		Player ac;
		try {
			ac = Manager.createPlayer(Sounds.class.getResource("sounds/NextGameRound.wav"));
			ac.start();
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

	public static void playBg(){
		Player ac;
		try {
			ac = Manager.createPlayer(Sounds.class.getResource("sounds/music.wav"));
			ac.start();
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

	public static void playShu(){
		Player ac;
		try {
			ac = Manager.createPlayer(Sounds.class.getResource("sounds/Props_Bomb.wav"));
			ac.start();
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

	public static void playCob1(){
		Player ac;
		try {
			ac = Manager.createPlayer(Sounds.class.getResource("sounds/combo_1.wav"));
			ac.start();
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
	
	public static void playCob2(){
		Player ac;
		try {
			ac = Manager.createPlayer(Sounds.class.getResource("sounds/combo_2.wav"));
			ac.start();
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

	public static void playCob3(){
		Player ac;
		try {
			ac = Manager.createPlayer(Sounds.class.getResource("sounds/combo_3.wav"));
			ac.start();
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

	
}
